import request from './axios';

export function login(data: any) {
    return request({
        url: '/auth/accessToken',
        method: 'post',
        data
    });
}

export function getInfo(refreshToken) {
    return request({
        url: `/auth/userInfo/${refreshToken}`,
        method: 'get'
        // params: { token }
    });
}
export function getRouters() {
    return request({
        url: '/system/menu/items',
        method: 'get'
    });
}
export function logout(refreshToken) {
    return request({
        url: '/auth/logout',
        method: 'delete',
        params: { refreshToken }
    });
}
